module.exports = function (app, models, $, db, nm) {
  //用户获取分类信息
  app.get('/categorys', (req, res) => {
    models.category.list({}, (ret) => {
      //if (ret.length) ret = $.listToTree(ret);
      res.send(ret);
    },{
      sort:{
        sort:-1,
        createTime:-1
      }
    })
  })
};
